import { AddressType, HOST } from "../type/EnvironmentType"

/* ------------------------------------------------------------------------------ */

/**
 * 环境变量
 */
export const ENV: 'product' | 'development' = 'development';

/**
 * 正式服/测试服地址
 */
export const EnvAddress: AddressType = {
  development: {
    BASE_URL: 'https://dev.medtion.com',
    BASE_URL_MSG: 'https://msgdev.medtion.com',
    BASE_URL_SEARCH: 'https://searchdev.medtion.com',
    BASE_URL_PATIENT: 'https://patienttest.medtion.com',
    BASE_URL_AI_WS: 'wss://gapidev.brainmed.com/nyhAiServe',
    BASE_URL_AI_SERVER: 'https://gapi.brainmed.com',
  },
  production: {
    BASE_URL: 'https://www.medtion.com',
    BASE_URL_MSG: 'https://msg.medtion.com',
    BASE_URL_SEARCH: 'https://search.medtion.com',
    BASE_URL_PATIENT: 'https://patient.medtion.com',
    BASE_URL_AI_WS:'wss://gapi.brainmed.com/nyhAiServe',
    BASE_URL_AI_SERVER: 'https://gapidev.brainmed.com',
  }
}

/**
 * 请求地址
 */
export const NetworkAddress: HOST = {
  BASE_URL: EnvAddress[ENV].BASE_URL,
  BASE_URL_MSG: EnvAddress[ENV].BASE_URL_MSG,
  BASE_URL_SEARCH: EnvAddress[ENV].BASE_URL_SEARCH,
  BASE_URL_PATIENT: EnvAddress[ENV].BASE_URL_PATIENT,
  BASE_URL_AI_WS: EnvAddress[ENV].BASE_URL_AI_WS,
  BASE_URL_AI_SERVER: EnvAddress[ENV].BASE_URL_AI_SERVER,
}


